<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改补考得分')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-resit-edit" th:object="${courseResit}">
            <input name="courseResitId" th:field="*{courseResitId}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">课程编号：</label>
                <div class="col-sm-8">
                    <input name="courseNumber" th:field="*{courseNumber}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">课程名称：</label>
                <div class="col-sm-8">
                    <input name="courseName" th:field="*{courseName}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">教师编号：</label>
                <div class="col-sm-8">
                    <input name="teacherNumber" th:field="*{teacherNumber}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">补考成绩：</label>
                <div class="col-sm-8">
                    <input name="resitScore" th:field="*{resitScore}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">补考次数：</label>
                <div class="col-sm-8">
                    <input name="resitCount" th:field="*{resitCount}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">学年：</label>
                <div class="col-sm-8">
                    <input name="startYear" th:field="*{startYear}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">上/下学期：</label>
                <div class="col-sm-8">
                    <input name="semester" th:field="*{semester}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">学生编号：</label>
                <div class="col-sm-8">
                    <input name="studentNumber" th:field="*{studentNumber}" class="form-control" type="text" required>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">备注：</label>
                <div class="col-sm-8">
                    <input name="remark" th:field="*{remark}" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "gas/resit";
        $("#form-resit-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-resit-edit').serialize());
            }
        }
    </script>
</body>
</html>